package com.wclass.service.impl;

import com.wclass.entity.BaseBankCard;
import com.wclass.mapper.BaseBankCardMapper;
import com.wclass.service.IBaseBankCardService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * <p>
 * 我的账户-我的银行卡信息 服务实现类
 * </p>
 *
 * @author SEN
 * @since 2019-02-14
 */
@Service
public class BaseBankCardServiceImpl extends ServiceImpl<BaseBankCardMapper, BaseBankCard> implements IBaseBankCardService {

    @Override
    public void insertInfo(String bankName, String bankType, String bankNo, Long userID) {
        BaseBankCard info = new BaseBankCard();
        info.setCrtTime(new Date());
        info.setBankName(bankName);
        info.setBankType(bankType);
        info.setBankNo(bankNo);
        info.setUserId(userID);
        baseMapper.insert(info);
    }
}
